home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / mac / Sample Code / QuickTime / QuickTimeIntro / WiredSprites / Clippings / CreateKeyFrameSample.clp / CreateKeyFrameSample.clp.rsrc
MacOS Resource Fork  |  2000-10-06  |  2.6 KB  |  [clpt/drag]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
56% TrID Mac AppleDouble encoded default
28% TrID TTComp archive compressed (bin-2K) default (weak)
14% TrID MacBinary 1 default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[clpt]
macFileCreator[drag]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 0a 0a 63 6c 70 74 64 72 | 61 67 01 00 00 00 00 00 |..clptdr|ag......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 09 c4 00 00 08 c4 00 00 |........|........|
|00000060| 00 46 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.F......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 18 43 72 65 61 74 | 65 4b 65 79 46 72 61 6d |...Creat|eKeyFram|
|00000090| 65 53 61 6d 70 6c 65 2e | 63 6c 70 6c 70 6c 70 70 |eSample.|clplplpp|
|000000a0| 70 79 02 00 63 6c 70 74 | 64 72 61 67 01 00 00 00 |py..clpt|drag....|
|000000b0| 01 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 b5 40 ed cf | 00 00 00 00 00 00 0a 0a |.....@..|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 08 9c 09 2f | 2f 2f 2f 2f 2f 2f 2f 2f |......./|////////|
|00000160| 2f 0d 09 2f 2f 0d 09 2f | 2f 20 63 72 65 61 74 65 |/..//../|/ create|
|00000170| 20 61 20 6b 65 79 20 66 | 72 61 6d 65 20 73 61 6d | a key f|rame sam|
|00000180| 70 6c 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 73 |ple cont|aining s|
|00000190| 69 78 20 73 70 72 69 74 | 65 73 20 61 6e 64 20 61 |ix sprit|es and a|
|000001a0| 6c 6c 20 6f 66 20 74 68 | 65 69 72 20 73 68 61 72 |ll of th|eir shar|
|000001b0| 65 64 20 69 6d 61 67 65 | 73 0d 09 2f 2f 0d 09 2f |ed image|s..//../|
|000001c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0d 09 2f 2f 20 63 |////////|/...// c|
|000001d0| 72 65 61 74 65 20 61 20 | 6e 65 77 2c 20 65 6d 70 |reate a |new, emp|
|000001e0| 74 79 20 6b 65 79 20 66 | 72 61 6d 65 20 73 61 6d |ty key f|rame sam|
|000001f0| 70 6c 65 0d 09 6d 79 45 | 72 72 20 3d 20 51 54 4e |ple..myE|rr = QTN|
|00000200| 65 77 41 74 6f 6d 43 6f | 6e 74 61 69 6e 65 72 28 |ewAtomCo|ntainer(|
|00000210| 26 6d 79 53 61 6d 70 6c | 65 29 3b 0d 09 69 66 20 |&mySampl|e);..if |
|00000220| 28 6d 79 45 72 72 20 21 | 3d 20 6e 6f 45 72 72 29 |(myErr !|= noErr)|
|00000230| 0d 09 09 67 6f 74 6f 20 | 62 61 69 6c 3b 0d 0d 09 |...goto |bail;...|
|00000240| 6d 79 4b 65 79 43 6f 6c | 6f 72 2e 72 65 64 20 3d |myKeyCol|or.red =|
|00000250| 20 30 78 66 66 66 66 3b | 09 09 09 09 09 09 2f 2f | 0xffff;|......//|
|00000260| 20 77 68 69 74 65 0d 09 | 6d 79 4b 65 79 43 6f 6c | white..|myKeyCol|
|00000270| 6f 72 2e 67 72 65 65 6e | 20 3d 20 30 78 66 66 66 |or.green| = 0xfff|
|00000280| 66 3b 0d 09 6d 79 4b 65 | 79 43 6f 6c 6f 72 2e 62 |f;..myKe|yColor.b|
|00000290| 6c 75 65 20 3d 20 30 78 | 66 66 66 66 3b 0d 0d 09 |lue = 0x|ffff;...|
|000002a0| 2f 2f 20 61 64 64 20 69 | 6d 61 67 65 73 20 74 6f |// add i|mages to|
|000002b0| 20 74 68 65 20 6b 65 79 | 20 66 72 61 6d 65 20 73 | the key| frame s|
|000002c0| 61 6d 70 6c 65 0d 09 41 | 64 64 50 49 43 54 49 6d |ample..A|ddPICTIm|
|000002d0| 61 67 65 54 6f 4b 65 79 | 46 72 61 6d 65 53 61 6d |ageToKey|FrameSam|
|000002e0| 70 6c 65 28 6d 79 53 61 | 6d 70 6c 65 2c 09 09 09 |ple(mySa|mple,...|
|000002f0| 09 09 09 2f 2a 20 74 68 | 65 20 6b 65 79 20 66 72 |.../* th|e key fr|
|00000300| 61 6d 65 20 73 61 6d 70 | 6c 65 20 2a 2f 0d 09 09 |ame samp|le */...|
|00000310| 09 09 09 09 09 09 6b 47 | 6f 54 6f 42 65 67 69 6e |......kG|oToBegin|
|00000320| 6e 69 6e 67 42 75 74 74 | 6f 6e 55 70 2c 09 09 09 |ningButt|onUp,...|
|00000330| 2f 2a 20 70 69 63 74 20 | 72 65 73 6f 75 72 63 65 |/* pict |resource|
|00000340| 20 69 64 20 2a 2f 0d 09 | 09 09 09 09 09 09 09 26 | id */..|.......&|
|00000350| 6d 79 4b 65 79 43 6f 6c | 6f 72 2c 09 09 09 09 09 |myKeyCol|or,.....|
|00000360| 2f 2a 20 52 47 42 43 6f | 6c 6f 72 20 74 68 61 74 |/* RGBCo|lor that|
|00000370| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 | should |be used |
|00000380| 61 73 20 74 68 65 20 74 | 72 61 6e 73 70 61 72 65 |as the t|ranspare|
|00000390| 6e 63 79 20 63 6f 6c 6f | 72 20 2a 2f 0d 09 09 09 |ncy colo|r */....|
|000003a0| 09 09 09 09 09 6b 47 6f | 54 6f 42 65 67 69 6e 6e |.....kGo|ToBeginn|
|000003b0| 69 6e 67 42 75 74 74 6f | 6e 55 70 49 6e 64 65 78 |ingButto|nUpIndex|
|000003c0| 2c 09 2f 2a 20 61 74 6f | 6d 20 69 64 20 66 6f 72 |,./* ato|m id for|
|000003d0| 20 74 68 65 20 6b 53 70 | 72 69 74 65 49 6d 61 67 | the kSp|riteImag|
|000003e0| 65 41 74 6f 6d 54 79 70 | 65 20 61 74 6f 6d 20 2a |eAtomTyp|e atom *|
|000003f0| 2f 0d 09 09 09 09 09 09 | 09 09 4e 55 4c 4c 2c 09 |/.......|..NULL,.|
|00000400| 09 09 09 09 09 09 2f 2a | 20 6f 70 74 69 6f 6e 61 |....../*| optiona|
|00000410| 6c 20 73 70 72 69 74 65 | 20 72 65 67 69 73 74 72 |l sprite| registr|
|00000420| 61 74 69 6f 6e 20 70 6f | 69 6e 74 20 2a 2f 0d 09 |ation po|int */..|
|00000430| 09 09 09 09 09 09 09 4e | 55 4c 4c 29 3b 09 09 09 |.......N|ULL);...|
|00000440| 09 09 09 09 2f 2a 20 6f | 70 74 69 6f 6e 61 6c 20 |..../* o|ptional |
|00000450| 73 70 72 69 74 65 20 69 | 6d 61 67 65 20 6e 61 6d |sprite i|mage nam|
|00000460| 65 20 2a 2f 0d 09 41 64 | 64 50 49 43 54 49 6d 61 |e */..Ad|dPICTIma|
|00000470| 67 65 54 6f 4b 65 79 46 | 72 61 6d 65 53 61 6d 70 |geToKeyF|rameSamp|
|00000480| 6c 65 28 6d 79 53 61 6d | 70 6c 65 2c 20 6b 47 6f |le(mySam|ple, kGo|
|00000490| 54 6f 42 65 67 69 6e 6e | 69 6e 67 42 75 74 74 6f |ToBeginn|ingButto|
|000004a0| 6e 44 6f 77 6e 2c 20 26 | 6d 79 4b 65 79 43 6f 6c |nDown, &|myKeyCol|
|000004b0| 6f 72 2c 20 6b 47 6f 54 | 6f 42 65 67 69 6e 6e 69 |or, kGoT|oBeginni|
|000004c0| 6e 67 42 75 74 74 6f 6e | 44 6f 77 6e 49 6e 64 65 |ngButton|DownInde|
|000004d0| 78 2c 20 4e 55 4c 4c 2c | 20 4e 55 4c 4c 29 3b 0d |x, NULL,| NULL);.|
|000004e0| 09 41 64 64 50 49 43 54 | 49 6d 61 67 65 54 6f 4b |.AddPICT|ImageToK|
|000004f0| 65 79 46 72 61 6d 65 53 | 61 6d 70 6c 65 28 6d 79 |eyFrameS|ample(my|
|00000500| 53 61 6d 70 6c 65 2c 20 | 6b 47 6f 54 6f 45 6e 64 |Sample, |kGoToEnd|
|00000510| 42 75 74 74 6f 6e 55 70 | 2c 20 26 6d 79 4b 65 79 |ButtonUp|, &myKey|
|00000520| 43 6f 6c 6f 72 2c 20 6b | 47 6f 54 6f 45 6e 64 42 |Color, k|GoToEndB|
|00000530| 75 74 74 6f 6e 55 70 49 | 6e 64 65 78 2c 20 4e 55 |uttonUpI|ndex, NU|
|00000540| 4c 4c 2c 20 4e 55 4c 4c | 29 3b 0d 09 41 64 64 50 |LL, NULL|);..AddP|
|00000550| 49 43 54 49 6d 61 67 65 | 54 6f 4b 65 79 46 72 61 |ICTImage|ToKeyFra|
|00000560| 6d 65 53 61 6d 70 6c 65 | 28 6d 79 53 61 6d 70 6c |meSample|(mySampl|
|00000570| 65 2c 20 6b 47 6f 54 6f | 45 6e 64 42 75 74 74 6f |e, kGoTo|EndButto|
|00000580| 6e 44 6f 77 6e 2c 20 26 | 6d 79 4b 65 79 43 6f 6c |nDown, &|myKeyCol|
|00000590| 6f 72 2c 20 6b 47 6f 54 | 6f 45 6e 64 42 75 74 74 |or, kGoT|oEndButt|
|000005a0| 6f 6e 44 6f 77 6e 49 6e | 64 65 78 2c 20 4e 55 4c |onDownIn|dex, NUL|
|000005b0| 4c 2c 20 4e 55 4c 4c 29 | 3b 0d 09 41 64 64 50 49 |L, NULL)|;..AddPI|
|000005c0| 43 54 49 6d 61 67 65 54 | 6f 4b 65 79 46 72 61 6d |CTImageT|oKeyFram|
|000005d0| 65 53 61 6d 70 6c 65 28 | 6d 79 53 61 6d 70 6c 65 |eSample(|mySample|
|000005e0| 2c 20 6b 47 6f 54 6f 50 | 72 65 76 42 75 74 74 6f |, kGoToP|revButto|
|000005f0| 6e 55 70 2c 20 26 6d 79 | 4b 65 79 43 6f 6c 6f 72 |nUp, &my|KeyColor|
|00000600| 2c 20 6b 47 6f 54 6f 50 | 72 65 76 42 75 74 74 6f |, kGoToP|revButto|
|00000610| 6e 55 70 49 6e 64 65 78 | 2c 20 4e 55 4c 4c 2c 20 |nUpIndex|, NULL, |
|00000620| 4e 55 4c 4c 29 3b 0d 09 | 41 64 64 50 49 43 54 49 |NULL);..|AddPICTI|
|00000630| 6d 61 67 65 54 6f 4b 65 | 79 46 72 61 6d 65 53 61 |mageToKe|yFrameSa|
|00000640| 6d 70 6c 65 28 6d 79 53 | 61 6d 70 6c 65 2c 20 6b |mple(myS|ample, k|
|00000650| 47 6f 54 6f 50 72 65 76 | 42 75 74 74 6f 6e 44 6f |GoToPrev|ButtonDo|
|00000660| 77 6e 2c 20 26 6d 79 4b | 65 79 43 6f 6c 6f 72 2c |wn, &myK|eyColor,|
|00000670| 20 6b 47 6f 54 6f 50 72 | 65 76 42 75 74 74 6f 6e | kGoToPr|evButton|
|00000680| 44 6f 77 6e 49 6e 64 65 | 78 2c 20 4e 55 4c 4c 2c |DownInde|x, NULL,|
|00000690| 20 4e 55 4c 4c 29 3b 0d | 09 41 64 64 50 49 43 54 | NULL);.|.AddPICT|
|000006a0| 49 6d 61 67 65 54 6f 4b | 65 79 46 72 61 6d 65 53 |ImageToK|eyFrameS|
|000006b0| 61 6d 70 6c 65 28 6d 79 | 53 61 6d 70 6c 65 2c 20 |ample(my|Sample, |
|000006c0| 6b 47 6f 54 6f 4e 65 78 | 74 42 75 74 74 6f 6e 55 |kGoToNex|tButtonU|
|000006d0| 70 2c 20 26 6d 79 4b 65 | 79 43 6f 6c 6f 72 2c 20 |p, &myKe|yColor, |
|000006e0| 6b 47 6f 54 6f 4e 65 78 | 74 42 75 74 74 6f 6e 55 |kGoToNex|tButtonU|
|000006f0| 70 49 6e 64 65 78 2c 20 | 4e 55 4c 4c 2c 20 4e 55 |pIndex, |NULL, NU|
|00000700| 4c 4c 29 3b 0d 09 41 64 | 64 50 49 43 54 49 6d 61 |LL);..Ad|dPICTIma|
|00000710| 67 65 54 6f 4b 65 79 46 | 72 61 6d 65 53 61 6d 70 |geToKeyF|rameSamp|
|00000720| 6c 65 28 6d 79 53 61 6d | 70 6c 65 2c 20 6b 47 6f |le(mySam|ple, kGo|
|00000730| 54 6f 4e 65 78 74 42 75 | 74 74 6f 6e 44 6f 77 6e |ToNextBu|ttonDown|
|00000740| 2c 20 26 6d 79 4b 65 79 | 43 6f 6c 6f 72 2c 20 6b |, &myKey|Color, k|
|00000750| 47 6f 54 6f 4e 65 78 74 | 42 75 74 74 6f 6e 44 6f |GoToNext|ButtonDo|
|00000760| 77 6e 49 6e 64 65 78 2c | 20 4e 55 4c 4c 2c 20 4e |wnIndex,| NULL, N|
|00000770| 55 4c 4c 29 3b 0d 09 41 | 64 64 50 49 43 54 49 6d |ULL);..A|ddPICTIm|
|00000780| 61 67 65 54 6f 4b 65 79 | 46 72 61 6d 65 53 61 6d |ageToKey|FrameSam|
|00000790| 70 6c 65 28 6d 79 53 61 | 6d 70 6c 65 2c 20 6b 50 |ple(mySa|mple, kP|
|000007a0| 65 6e 67 75 69 6e 46 6f | 72 77 61 72 64 2c 20 26 |enguinFo|rward, &|
|000007b0| 6d 79 4b 65 79 43 6f 6c | 6f 72 2c 20 6b 50 65 6e |myKeyCol|or, kPen|
|000007c0| 67 75 69 6e 46 6f 72 77 | 61 72 64 49 6e 64 65 78 |guinForw|ardIndex|
|000007d0| 2c 20 4e 55 4c 4c 2c 20 | 4e 55 4c 4c 29 3b 0d 09 |, NULL, |NULL);..|
|000007e0| 41 64 64 50 49 43 54 49 | 6d 61 67 65 54 6f 4b 65 |AddPICTI|mageToKe|
|000007f0| 79 46 72 61 6d 65 53 61 | 6d 70 6c 65 28 6d 79 53 |yFrameSa|mple(myS|
|00000800| 61 6d 70 6c 65 2c 20 6b | 50 65 6e 67 75 69 6e 4c |ample, k|PenguinL|
|00000810| 65 66 74 2c 20 26 6d 79 | 4b 65 79 43 6f 6c 6f 72 |eft, &my|KeyColor|
|00000820| 2c 20 6b 50 65 6e 67 75 | 69 6e 4c 65 66 74 49 6e |, kPengu|inLeftIn|
|00000830| 64 65 78 2c 20 4e 55 4c | 4c 2c 20 4e 55 4c 4c 29 |dex, NUL|L, NULL)|
|00000840| 3b 0d 09 41 64 64 50 49 | 43 54 49 6d 61 67 65 54 |;..AddPI|CTImageT|
|00000850| 6f 4b 65 79 46 72 61 6d | 65 53 61 6d 70 6c 65 28 |oKeyFram|eSample(|
|00000860| 6d 79 53 61 6d 70 6c 65 | 2c 20 6b 50 65 6e 67 75 |mySample|, kPengu|
|00000870| 69 6e 52 69 67 68 74 2c | 20 26 6d 79 4b 65 79 43 |inRight,| &myKeyC|
|00000880| 6f 6c 6f 72 2c 20 6b 50 | 65 6e 67 75 69 6e 52 69 |olor, kP|enguinRi|
|00000890| 67 68 74 49 6e 64 65 78 | 2c 20 4e 55 4c 4c 2c 20 |ghtIndex|, NULL, |
|000008a0| 4e 55 4c 4c 29 3b 0d 09 | 41 64 64 50 49 43 54 49 |NULL);..|AddPICTI|
|000008b0| 6d 61 67 65 54 6f 4b 65 | 79 46 72 61 6d 65 53 61 |mageToKe|yFrameSa|
|000008c0| 6d 70 6c 65 28 6d 79 53 | 61 6d 70 6c 65 2c 20 6b |mple(myS|ample, k|
|000008d0| 50 65 6e 67 75 69 6e 43 | 6c 6f 73 65 64 2c 20 26 |PenguinC|losed, &|
|000008e0| 6d 79 4b 65 79 43 6f 6c | 6f 72 2c 20 6b 50 65 6e |myKeyCol|or, kPen|
|000008f0| 67 75 69 6e 43 6c 6f 73 | 65 64 49 6e 64 65 78 2c |guinClos|edIndex,|
|00000900| 20 4e 55 4c 4c 2c 20 4e | 55 4c 4c 29 3b 0d 0d 09 | NULL, N|ULL);...|
|00000910| 66 6f 72 20 28 6d 79 49 | 6e 64 65 78 20 3d 20 6b |for (myI|ndex = k|
|00000920| 50 65 6e 67 75 69 6e 44 | 6f 77 6e 52 69 67 68 74 |PenguinD|ownRight|
|00000930| 43 79 63 6c 65 53 74 61 | 72 74 49 6e 64 65 78 2c |CycleSta|rtIndex,|
|00000940| 20 6d 79 49 44 20 3d 20 | 6b 57 61 6c 6b 44 6f 77 | myID = |kWalkDow|
|00000950| 6e 52 69 67 68 74 43 79 | 63 6c 65 53 74 61 72 74 |nRightCy|cleStart|
|00000960| 3b 20 6d 79 49 6e 64 65 | 78 20 3c 3d 20 6b 50 65 |; myInde|x <= kPe|
|00000970| 6e 67 75 69 6e 44 6f 77 | 6e 52 69 67 68 74 43 79 |nguinDow|nRightCy|
|00000980| 63 6c 65 45 6e 64 49 6e | 64 65 78 3b 20 6d 79 49 |cleEndIn|dex; myI|
|00000990| 6e 64 65 78 2b 2b 2c 20 | 6d 79 49 44 2b 2b 29 0d |ndex++, |myID++).|
|000009a0| 09 09 41 64 64 50 49 43 | 54 49 6d 61 67 65 54 6f |..AddPIC|TImageTo|
|000009b0| 4b 65 79 46 72 61 6d 65 | 53 61 6d 70 6c 65 28 6d |KeyFrame|Sample(m|
|000009c0| 79 53 61 6d 70 6c 65 2c | 20 6d 79 49 44 2c 20 26 |ySample,| myID, &|
|000009d0| 6d 79 4b 65 79 43 6f 6c | 6f 72 2c 20 6d 79 49 6e |myKeyCol|or, myIn|
|000009e0| 64 65 78 2c 20 4e 55 4c | 4c 2c 20 4e 55 4c 4c 29 |dex, NUL|L, NULL)|
|000009f0| 3b 0d 00 00 00 20 00 00 | 00 01 00 00 00 04 00 00 |;.... ..|........|
|00000a00| 00 00 00 00 00 01 54 45 | 58 54 00 00 01 00 00 00 |......TE|XT......|
|00000a10| 00 00 00 00 00 00 00 00 | 01 00 00 00 09 c4 00 00 |........|........|
|00000a20| 08 c4 00 00 00 46 07 ac | 3e 30 02 32 00 00 00 1c |.....F..|>0.2....|
|00000a30| 00 46 00 01 54 45 58 54 | 00 00 00 12 64 72 61 67 |.F..TEXT|....drag|
|00000a40| 00 00 00 1e 01 00 ff ff | 00 00 00 00 00 b3 45 8c |........|......E.|
|00000a50| 00 80 ff ff 00 00 08 a0 | 00 a4 80 f0 |........|.... |
+--------+-------------------------+-------------------------+--------+--------+